<template>
  <Button size="small"><slot></slot></Button>
</template>

<script setup>
const props = defineProps({
  type: {
    type: String,
    default: 'primary'
  }
})
const typeEnum = computed(
  () =>
    ({
      primary: {
        color: 'primary'
      },
      success: {
        color: 'light-green-dark-1'
      },
      warn: {
        color: 'deep-orange-lighten-5'
      }
    })[props.type]
)
</script>

<style lang="css" scoped>
.p-button:not(.p-button-outlined) {
  border: none !important;
}
.p-button.p-button-sm {
  padding: 0.2rem 1.2rem;
}
.return {
  column-gap: 4px;
  &:deep(.pi) {
    font-size: 0.6rem !important;
  }
}
</style>
